import request from '@/utils/request'

// 获取售货机商品销量
export function getSkuCollect(innerCode, start, end) {
  return request({ url: '/order-service/report/skuCollect/' + innerCode + '/' + start + '/' + end })
}

// 获取售货机商品补货次数
export function getSupplyCount(innerCode, start, end) {
  return request({ url: '/task-service/task/supplyCount/' + innerCode + '/' + start + '/' + end })
}

// 获取售货机商品维修次数
export function getrepairCount(innerCode, start, end) {
  return request({ url: '/task-service/task/repairCount/' + innerCode + '/' + start + '/' + end })
}

// 获取一定时间范围之内的收入
export function getOrderAmount(params) {
  return request({ url: '/order-service/report/orderAmount', params })
}
